package com.ruoyi.sale.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售表对象 sys_sale
 * 
 * @author sj
 * @date 2022-06-07
 */
public class SysSale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销售单号 */
    private Long saleId;

    /** 销售时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleDate;

    /** 消费者 */
    @Excel(name = "消费者")
    private String saleCustomer;

    /** 销售金额 */
    @Excel(name = "销售金额")
    private BigDecimal salePrice;

    public void setSaleId(Long saleId) 
    {
        this.saleId = saleId;
    }

    public Long getSaleId() 
    {
        return saleId;
    }
    public void setSaleDate(Date saleDate) 
    {
        this.saleDate = saleDate;
    }

    public Date getSaleDate() 
    {
        return saleDate;
    }
    public void setSaleCustomer(String saleCustomer) 
    {
        this.saleCustomer = saleCustomer;
    }

    public String getSaleCustomer() 
    {
        return saleCustomer;
    }
    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("saleId", getSaleId())
            .append("saleDate", getSaleDate())
            .append("saleCustomer", getSaleCustomer())
            .append("salePrice", getSalePrice())
            .toString();
    }
}
